package com.hlg.xboot.exceptions;

/**
 * <p>未找到记录异常</p>
 * <p>Copyright: Copyright (c) 2016</p>
 * <p>Company: 中视数讯</p>
 * <p>Site: www.digi-zones.com</p>
 *
 * @author yangxin
 * @version 1.0
 * @date 2016/8/5
 */
public class RecordNotFoundException extends ServerBizException {

    public RecordNotFoundException() {
        super(ErrorCode.NOTFOUND_RECORD_ERROR.getRemark());
        this.errCode = ErrorCode.NOTFOUND_RECORD_ERROR;
    }

    public RecordNotFoundException(String errorMessage) {
        super(errorMessage);
        this.errCode = ErrorCode.NOTFOUND_RECORD_ERROR;
    }

    public RecordNotFoundException(ErrorCode errorCode) {
        super(errorCode.getRemark());
        this.errCode = errorCode;
    }
}
